package com.atts.baccarat.table;

/**
 * 单元格元素
 * 
 * @author Administrator
 * 
 */
public class TableItem {

	/**
	 * 单元格颜色
	 */
	private final TableItemColor color;

	/**
	 * 单元格形状
	 */
	private final TableItemShape shape;

	public TableItem(final TableItemColor color, final TableItemShape shape) {

		if (color == null || shape == null) {
			throw new IllegalArgumentException();
		}

		this.color = color;
		this.shape = shape;
	}

	public TableItemColor getColor() {
		return this.color;
	}

	public TableItemShape getShape() {
		return this.shape;
	}

}
